package com.bravo.event;

import com.bravo.callbackinfs.callbackinf;

/**
 * @Auther: Min.Liu
 * @Description:
 * @Date: Created in 16:33 2024/10/30
 */
public class MyEvent extends BravoApplicationEvent {

    public MyEvent(Object source) {
        super(source);
    }

    public void callback(){
        Object source = getSource();
        if (callbackinf.class.isAssignableFrom(source.getClass())) {
            callbackinf callbackinf = (callbackinf) source;
            callbackinf.callback();
        }
    }
}
